<?php
	$MaNguoiDung = $_POST['MaNguoiDung'];
	$TenNguoiDung = $_POST['TenNguoiDung'];
	$DiaChi = $_POST['DiaChi'];
	$Email = $_POST['Email'];
	$DienThoai = $_POST['DienThoai'];
	
	$nguoidung = new nguoidungbs();
	$nguoidung->MaNguoiDung = $MaNguoiDung;
	$nguoidung->TenNguoiDung = $TenNguoiDung;
	$nguoidung->DiaChi = $DiaChi;
	$nguoidung->Email = $Email;
	$nguoidung->DienThoai = $DienThoai;
	
	$kq = $nguoidung->Update();
	
	if($kq)
		header("Location: index.php?do=nguoidung");
	else
		ThongBaoLoi("Lỗi truy vấn!");
?>